package com.h3c.nem.service;

import com.h3c.nem.dto.PsaTbTrainWorkerDTO;
import com.h3c.nem.dto.TbTrainWorkerDTO;
import com.h3c.nem.entity.TbTrainWorker;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
/**
 * Copyright (C), 2020-2020, h3c
 * FileName: ITbTrainWorkerService
 *
 * @Author: j26296
 * @Date: 2022-06-20
 * Description: tb_train_worker service
 * Version: 1.0
 */
public interface ITbTrainWorkerService extends IService<TbTrainWorker>  {

    /**
     * @title: selectFuzzyByDto
     * @description: 模糊查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-06-20
     * @version: 1.0
     * @author: j26296
     */
    public TbTrainWorkerDTO selectFuzzyByDto(TbTrainWorkerDTO dto);

    /**
     * @title: selectByDto
     * @description: 精确查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-06-20
     * @version: 1.0
     * @author: j26296
     */
    public List<TbTrainWorkerDTO> selectByDto(TbTrainWorkerDTO dto);

    /**
     * @title: insertDto
     * @description: 插入操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-06-20
     * @version: 1.0
     * @author: j26296
     */
    public Integer insertDto(TbTrainWorkerDTO dto);

    /**
     * @title: updateDto
     * @description: 修改操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-06-20
     * @version: 1.0
     * @author: j26296
     */
    public Integer updateDto(TbTrainWorkerDTO dto);

    /**
     * @title: deleteDto
     * @description: 删除操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-06-20
     * @version: 1.0
     * @author: j26296
     */
    public Integer deleteDto(TbTrainWorkerDTO dto);

    public void  sendOneMail(List<TbTrainWorker> tbTrainWorkers,String classId);
    public void submitOneMail(TbTrainWorkerDTO dto);
    public void reback(PsaTbTrainWorkerDTO dto);
    public PsaTbTrainWorkerDTO searchLetterContent(PsaTbTrainWorkerDTO dto);
    public void closeTimeOverTodoTask();
    public TbTrainWorkerDTO getLetterContent(TbTrainWorkerDTO dto);

}
